<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>注册</title>
    <style>
        #regModal{
            height: 600px;
            top:50%;
            transform:translateY(-50%);
        }
    </style>
</head>
<body>
<!-- 注册框 -->
<div class="modal fade" id="regModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">您好，欢迎注册！</h4>
                </div>
                <div class="modal-body row">
                    <div class="col-md-8 col-md-offset-2">
                        <form action="index.html">
                            <div class="input-group form-group"><!--组合框中出现label会破坏样式-->
                                <span class="input-group-addon" id="sizing-addon0"><span class="glyphicon glyphicon-envelope"></span></span>
                                <input id="email" class="form-control" name="username" placeholder="请输入邮箱" required aria-describedby="sizing-addon0" type="email">
                            </div>
                            <div class="input-group form-group">
                                <span class="input-group-addon" id="sizing-addon1"><span class="glyphicon glyphicon-user"></span></span>
                                <input id="username" class="form-control" name="username" placeholder="请输入用户名"  required aria-describedby="sizing-addon1">
                            </div>
                            <div class="input-group form-group">
                                <span class="input-group-addon" id="sizing-addon2"><span class="glyphicon glyphicon-lock"></span></span>
                                <input id="password" class="form-control" name="password" placeholder="请输入密码"  required aria-describedby="sizing-addon2" type="password">
                            </div>
                            <div class="input-group form-group">
                                <span class="input-group-addon" id="sizing-addon3"><span class="glyphicon glyphicon-lock"></span></span>
                                <input id="password2" class="form-control" name="password2" placeholder="请再次输入密码"  required aria-describedby="sizing-addon3" type="password">
                            </div>
                            <div class="input-group form-group">
                                <span class="input-group-addon" id="sizing-addon4"><span class="glyphicon glyphicon-phone"></span></span>
                                <input id="tel" class="form-control" name="tel" placeholder="请输入手机号" aria-describedby="sizing-addon4" type="tel">
                            </div>
                            <div class="checkbox">
                                <label for="agree">
                                    <input id="agree" name="agree" type="checkbox">  阅读并同意<a href="">注册条款</a>
                                </label>
                            </div>
                            <div class="form-group">
                                <input class="btn btn-warning form-control" type="submit" value="立 即 注 册">
                            </div>

                        </form>
                    </div>

                </div>
<!--
                <div class="modal-footer">
                    <a  class="btn btn-warning" >忘记密码</a>
                    <button type="button" class="btn btn-primary">免费注册</button>
                </div>
-->
            </div>
        </div>
    </div>

<!--<script src="js/jquery-2.2.4.js"></script>-->
<!--<script src="js/bootstrap.js"></script>-->
<script>
    $(function(){
        $('#regModal').modal({
            show:true,
            backdrop:true
        })
    });
</script>
</body>
</html>